Replication materials for “Taking the Cloth: Social norms and elite cues increase support for masks among white Evangelical Americans,” by Claire Adida, Christina Cottiero, Leonardo Falabella, Isabel Gotti, ShahBano Ijaz, Gregoire Phillips, Michael Seese.

This README file provides an overview of the replication materials for for the article “Taking the Cloth: Social norms and elite cues increase support for masks among white Evangelical Americans,” forthcoming in the Journal of Experimental Political Science.

Replication materials include the following files:
- loveplot_newnames.csv
- TtC_Manuscript_Replication.R
- TtC_ReplicationMaterials.html
- TtC_ReplicationMaterials.Rmd
- TtC_SI_Replication.R
- working.rds

The file working.rds is a R datafile that includes all anonymized data generated by the study.  The file loveplot_newnames.csv is a .csv file containing clean variable names / labels for plots included in the Supplementary Information (SI) document. 

TtC_ReplicationMaterials.Rmd is an Rmarkdown file containing the code needed to reproduce all analyses, tables, and figures in both the manuscript and the SI.  It produces the TtC_ReplicationMaterials.html file, which contains all tables and figures in both the manuscript and the SI.

The two R scripts, TtC_Manuscript_Replication.R and TtC_SI_Replication.R, are supplementary files that reproduce the analyses presented in the main manuscript and the SI respectively.  These files include roughly identical code to that provided in the .Rmd file (they occasionally generate additional / redundant charts and tables not included in the manuscript or SI); they are provided for users who do not wish to generate the .html output created by the .Rmd file.  Note that running each code chunk of the .Rmd will execute the R code itself.

All analyses were conducted with R 4.0.5 running on MacOS Monterey v.12.3.1.  The following R packages are used in this analysis:
- tidyverse 1.3.1
- modelsummary 0.9.5
- cobalt 4.3.2
- AER 1.2-9
- mediation 4.5.0
- MASS 7.3-55
- ggeffects 1.1.1
- emmeans 1.7.2
- factoextra 1.0.7

Please see the SI for a codebook of variables contained in working.rds.

